package com.pth.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class LoginOutAction extends ActionSupport {


	@Override
	public String execute() throws Exception {

		HttpSession session=ServletActionContext.getRequest().getSession();
		if(session.getAttribute("userinfo")!=null){
			session.removeAttribute("userinfo");
			session.invalidate();
			
		}
		
		
		return SUCCESS;
	
	}
	
}
